﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master"
    CodeBehind="wfRemBasicaRpt.aspx.cs" Inherits="RH.wfRemBasicaRpt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Import Namespace="Texfina.Common.Mg" %>
<%@ Import Namespace="Texfina.Core.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.onload = function () {
            var menuTable = document.getElementById('<%=mnuToolbar.ClientID %>');
            var menuLinks = menuTable.getElementsByTagName("a");
            if (menuLinks != null) {
                switch (menuLinks.length) {
                    case 2:
                       menuLinks[0].onclick = function () { return validateEditForm('_BTTPRN') }
                       menuLinks[1].onclick = function () { return validateEditForm('_BTTEXPO') }
                       break;
                }
            }

            this.ResizeGrid();
            this.MessageOnPostback();
        }

       
        function ResizeGrid() {
            
        }

        function panelOnUpdating() {
            updatePanelAnimationUpdating();
        }

        function panelOnUpdated() {
            ResizeGrid();
            updatePanelAnimationUpdated();
         }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="ToolBar">
        <asp:Menu ID="mnuToolbar" runat="server" Orientation="Horizontal" CssClass="ToolBarControl"
            OnMenuItemClick="mnuToolbar_MenuItemClick">
            <Items>
                <asp:MenuItem Text="Vista Previa" Value="_BTTPRN" ImageUrl="../Images/Icons/Enabled/Preview.png">
                </asp:MenuItem>
                <asp:MenuItem Text="Exportar" Value="_BTTEXPO" ImageUrl="../Images/Icons/Enabled/ExportXLS.png">
                </asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
    <div class="DataHeader">
        <table id="TableDataHeader" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
      
            <tr>
                <td style="width: 10px">
                    &nbsp;
                </td>
                <td>
                  <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                        -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                        <table width="100%" cellpadding="1" cellspacing="2">
                            <tr>
                                <td colspan="13">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td style="width: 110px;">
                                    Establecimiento
                                </td>
                                <td colspan="2">
                                    <asp:DropDownList ID="ddlidEstable" runat="server" Width="150px"></asp:DropDownList>
                                </td>
                                <td style="width: 15px;">
                                    &nbsp;
                                </td>
                                <td>
                                    U.Negocio:
                                </td>
                                <td colspan="5">
                                    <asp:DropDownList ID="ddlidUNegocio" runat="server" Width="185px" AutoPostBack="true" >
                                        </asp:DropDownList>
                                </td>
                                <td style=" width:82px;">
                                   <esd:esdButton ID="bttClear" runat="server" Text="Limpiar" Width="80px">
                                    </esd:esdButton>  
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>

                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td style="width: 110px;">
                                    C.Costos:
                                </td>
                                <td colspan="2">
                                    <asp:DropDownList ID="ddlidCCosto" runat="server" Width="150px"></asp:DropDownList>
                                </td>
                                <td style="width: 15px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Tipo Trabajador:
                                </td>
                                <td colspan="5">
                                   <asp:DropDownList ID="ddlidTipoTrab" runat="server" Width="185px">
                                    </asp:DropDownList>
                                </td>
                                <td style=" width:82px;">
                                  
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>

                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td style="width: 110px;">
                                   Rango Fechas:
                                </td>
                                <td colspan="2">
                                       <esd:esdDateTextBox ID="txtfeIngplaA" runat="server" Width="100px"></esd:esdDateTextBox>
                                          <esd:esdDateTextBox ID="txtfeIngplaB" runat="server" Width="100px"></esd:esdDateTextBox>
                                </td>
                                <td style="width: 15px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Estado Cesado:
                                </td>
                                <td colspan="5">
                                   <asp:RadioButton GroupName="grp_rbtEstado" ID="rbtEstadoCesado" Text="Si" runat="server" Checked="true"/>
                                   <asp:RadioButton GroupName="grp_rbtEstado" ID="rbtEstadoNoCesado" Text="No" runat="server" />
                                </td>
                                <td style=" width:82px;">
                                  
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                                                     
                            <tr>
                                <td colspan="13">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 10px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div class="DataDetail">
        
    </div>

    <asp:HiddenField ID="hdnMsgOPB" runat="server" />
    <asp:HiddenField ID="hdnidPersonal" runat="server" />
     <asp:HiddenField ID="hdnidPlanilla" runat="server" />
      <asp:HiddenField ID="hdnnuProcAnual" runat="server" />
</ContentTemplate> 
</asp:UpdatePanel>
<ajax:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server"
    TargetControlID="updatePanel1">
    <animations>
        <OnUpdating>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdating();" />  
        </Parallel>
        </OnUpdating>
        <OnUpdated>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdated();" /> 
        </Parallel> 
        </OnUpdated>
    </animations>
</ajax:UpdatePanelAnimationExtender>
<div id="Div1" class="updateProgress" style="display: none">
        <table width="100%">
            <tr>
                <td valign="middle">
                    <img src="../Images/Controls/Loading.gif" />
                </td>
                <td valign="middle">
                    <span class="updateProgressMessage">Cargando ...</span>
                </td>
            </tr>
        </table>
</div>
</asp:Content>
